#include "Export/RIVIAImageExporter.h"
#include "opencv2/imgcodecs.hpp"

#include "IRIVIAProject.h"

RIVIAImageExporter::RIVIAImageExporter()
{

}

RIVIAImageExporter::~RIVIAImageExporter()
{

}

bool RIVIAImageExporter::execExport()
{
    cv::Mat image = IRIVIAProject::getInstance()->getCurAllMatProc();
    if(!image.data)
        return false;
    cv::imwrite(m_strFileName.toStdString(), image); // Write the file
    return true;
}
